const express = require('express')
const cors = require('cors')
const apiRouter = require('./router/r_router')

const app = express()

app.use(cors())
// 接收post参数
app.use(express.urlencoded({ extended: false }))

app.use('/api', apiRouter)

app.listen('8888', () => {
    console.log('http://127.0.0.1:8888')
})